export default {
  props: {
    // fuzzySearch 时作为复合模糊查询条件，具体查询条件由后端自定义
    searchType: {
      type: String,
      default: ''
    },
    // 开启搜索栏
    openSearch: {
      type: Boolean,
      default: false
    },
    // 按钮列表
    tabsList: {
      type: Array,
      default: () => {
        return []
      }
    },
  },
  watch: {
    tabsList: {
      handler(v) {
        this.allTabsLists = v
      },
      immediate: true
    }
  },
  data() {
    return {
      allTabsLists: [],
    }
  },
  methods: {
    handleSelectSearch() {
      this.handleSeacrhBtn()
    },
    handleSeacrhBtn() {
      this.$emit('getSearchText', this.searchText)
      this.handleSearch()
    }
  }
}
